<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:fragment="content">
        <form name="f" th:action="@{/login}" method="post">
            <fieldset>
                <legend>Please Login</legend>
                <div th:if="${param.error}" class="alert alert-error">
                    Invalid username and password
                </div>
                <div th:if="${param.logout}" class="alert alert-success">
                    You have been logged out
                </div>
                <label for="username">Username</label>
                    <input type="text" id="username" name="username">

                <label for="password">Password</label>
                    <input type="text" id="password" name="password">
                <div class="form-action">
                    <button type="submit" class="btn">Login in</button>
                </div>
            </fieldset>
        </form>
    </div>
</body>
</html>